package factory.simpleFactory;import factory.simpleFactory.CheesePizza;import factory.simpleFactory.ClamPizza;import factory.simpleFactory.Pizza;/** * Created by Administrator on 2018-10-22. */public class SimplePizzaFactory {    public Pizza createPizza(String type){          Pizza pizza = null;          if(type.equals("cheese")){              pizza = new CheesePizza();          }else if(type.equals("clam")){               pizza = new ClamPizza();          }          return pizza;    }}